<?php
 include_once "../lib/DAL/SinhVienLop.php";

 class SinhVienLopBLL{
   
    function __construct(){
       
    }
    
    function __destruct(){
        
    }
    
    public function getsv_arrlop($malop){        
        $sql="SELECT ma_sv FROM tbl_sv_lop,tbl_nhaphoc WHERE tbl_sv_lop.ma_nhaphoc=tbl_nhaphoc.ma_nhaphoc AND ma_lop IN ($malop)";
        $kq=mysql_query($sql);
          
            if(mysql_num_rows($kq)>0){
                $arr=null;
                while($row = mysql_fetch_array($kq)){
                    $arr[] = $row['ma_sv'];
                }
            }
        return $arr;
    }
 }   
 ?>